/*
 * Group_StubImpl.java
 *
 */

package com.asaga.tools;

import java.sql.Connection;
import java.util.Date;

/**
 * Stub implementation of JavaBean to 
 * create discussion groups for Autism
 * web application
 * @author Charlie Gunti
 */
public class Group_StubImpl implements Group {
    
    private int groupID;
    private String groupName;
    private String groupDesc;
    private Date dateCreated;
    
    
    /** 
     * Creates a new instance of Group_StubImpl 
     */
    public Group_StubImpl() {
    }
    
    /**
     * Creates a new instance of Group
     * @param id The primary key of the database
     * @param name Group name
     * @param desc The description of the group
     * @param dateCreated The date the group was created
     */
    public Group_StubImpl(int id, String name, String desc, Date dateCreated) {
        this.groupID = id;
        this.groupName = name;
        this.groupDesc = desc;
        this.dateCreated = dateCreated;
    }
    
    /**
     * Gets the Group ID
     * @return Group ID
     */
    public int getGroupID() {
        return groupID;
    }
    
    /**
     * Sets the Group ID
     * @param id Sets primary key for the database
     */
    public void setGroupID(int id) {
        this.groupID = id;
    }
    
    /**
     * Gets the Group Name
     * @return Group name
     */
    public String getGroupName() {
        return groupName;
    }
    
    /**
     * Sets the Groups name
     * @param name Group name
     */
    public void setGroupName(String name) {
        this.groupName = name;
    }
    
    /**
     * Gets the groups description
     * @return Group description
     */
    public String getGroupDesc() {
        return groupName;
    }
    
    /**
     * Sets group description
     * @param desc the description of the group
     */
    public void setGroupDesc(String desc) {
        this.groupDesc = desc;
    }
    
    /**
     * Gets the date the group was created
     * @return Date the group was created
     */
    public Date getDateCreated() {
        return dateCreated;
    }
    
    /**
     * Sets the date the group was created
     * @param dateCreated Date group was created
     */
    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }
    
    /**
     * Creates a new discussion group
     * To be completed Spring Semester
     *
     */
    public boolean createGroup() {
        
        return false;
    }
    
    /**
     * Deletes a discussion group
     * To be completed Spring Semester
     *
     */
    public boolean deleteGroup() {
        return false;
    } 
    
    /**
     * Adds members to discussion groups
     * To be completed Spring Semester
     *
     */
    public boolean addToGroup() {
        
        return false;
    }
    
    /**
     * Removes members from discussion groups
     * To be completed Spring Semester
     *
     */
    public boolean removeFromGroup() {
        
        return false;
    }

    public boolean createGroup(String gName, String gDesc, String gCreator, Connection cn) {
        return false;
    }

    public boolean deleteGroup(int gId, Connection cn) {
        return false;
    }

    public boolean addToGroup(int gId, int pId, Connection cn) {
        return false;
    }

    public boolean removeFromGroup(int gId, int pId, Connection cn) {
        return false;
    }

    public boolean updateGroup(Connection cn) {
        return false;
    }
    
    
}
